module.exports = {
  publicPath: '/farm_shop',
  assetsDir: 'static',
  devServer: {
    proxy: {
      '/api': {
        target:
          process.env.NODE_ENV === 'production'
            ? 'https://www.fengyenongye.cn/farm_h5'
            : 'http://192.168.2.183:8080/farm_h5',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
